﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MediaMonitor.Common;
using System.Data;
using Adex;
using System.Text;

namespace MediaMonitor.Users
{
    public partial class Default2 : Adex.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lnkLastNewsAlert_Click(object sender, EventArgs e)
        {
            Response.Redirect("Report-LastNewAlert.aspx");
        }

        protected void lnkPendingNewsAlert_Click(object sender, EventArgs e)
        {
            ReportFuncs rpt = new ReportFuncs();
            DataTable dt = rpt.GetReport_NewsAlertOnDate(Convert.ToInt32(Request.Cookies["User"]["UserID"]));
            string date = dt.Rows[0]["LoginDate"].ToString();
            Response.Redirect("report-LastNewAlert.aspx?Date=" + date + "&Code=Padding");
        }

        protected void lnkSearchforNewsAlert_Click(object sender, EventArgs e)
        {
            Response.Redirect("report-newsalert-filter2.aspx?Code=");
        }

        protected void lnkToday_Click(object sender, EventArgs e)
        {
            ReportFuncs rpt = new ReportFuncs();
            DataTable dt = rpt.GetReport_NewsAlertOnDate(Convert.ToInt32(Request.Cookies["User"]["UserID"]));
            string date = dt.Rows[0]["LoginDate"].ToString();
            Response.Redirect("report-Todaynewalert.aspx?Date=" + date);
        }
    }
}